import request from '@/utils/request'

export function contractCount(query) {
  return request({
    url: '/api/v1/ht-contract/count/',
    method: 'get',
    params: query
  })
}
// 查询HtContract列表
export function listHtContract(query) {
  return request({
    url: '/api/v1/ht-contract',
    method: 'get',
    params: query
  })
}

// 查询HtContract详细
export function getHtContract(id) {
  return request({
    url: '/api/v1/ht-contract/' + id,
    method: 'get'
  })
}

// 新增HtContract
export function addHtContract(data) {
  return request({
    url: '/api/v1/ht-contract',
    method: 'post',
    data: data
  })
}

// 修改HtContract
export function updateHtContract(data) {
  return request({
    url: '/api/v1/ht-contract/' + data.id,
    method: 'put',
    data: data
  })
}

// 删除HtContract
export function delHtContract(data) {
  return request({
    url: '/api/v1/ht-contract',
    method: 'delete',
    data: data
  })
}

